package com.simpleframe.views.components;

import java.io.Writer;

public class Page extends Component {
	
	protected com.simpleframe.persistence.hibernate.Page page;
	
	@Override
	public boolean end(Writer writer, String tagBody) {
		evaluateParameters();
		mergeTemplate(writer,getTemplate());
		return false;
	}
	
	protected void evaluateParameters(){
		if(page!=null){
			addParameter("page", page);
		}
	}
	
	public void setPage(com.simpleframe.persistence.hibernate.Page page) {
		this.page = page;
	}

}
